package com.huawei.appgallery.forum.user.usercenter.activity;

import android.app.ActionBar;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;
import androidx.annotation.Nullable;
import com.huawei.appgallery.forum.base.ui.ForumActivity;
import com.huawei.appgallery.forum.user.api.IUserHomePageProtocol;
import com.huawei.hmf.annotation.ActivityDefine;
import o.azb;
import o.cbb.c;
import o.cbb.d;
import o.cbb.j;
import o.cgv;
import o.fho;
import o.fiu;
import o.fjb;
import o.fjm;
import o.FragmentTransaction;

@ActivityDefine(alias = "UserHomeTypeActivity", protocol = IUserHomePageProtocol.class)
public class UserHomeTypeActivity extends ForumActivity implements OnClickListener {
    public void onCreate(@Nullable Bundle bundle) {
        super.onCreate(bundle);
        ᐝ();
    }

    private void ᐝ() {
        cgv.ˋ(this, c.ॱ, c.ˋ);
        setContentView(d.ˊ);
        ͺ();
        ॱˊ();
    }

    private void ͺ() {
        ActionBar actionBar = getActionBar();
        if (actionBar != null) {
            actionBar.hide();
        }
        azb.ˏ(findViewById(b.ʼᐝ));
        ((TextView) findViewById(b.ʽˋ)).setText(getString(j.ˈ));
        findViewById(b.ˊ).setOnClickListener(this);
    }

    private void ॱˊ() {
        fjb ˎ = fho.ˏ().ˋ("User").ˎ("UserHomeTypeFragment");
        IUserHomePageProtocol iUserHomePageProtocol = (IUserHomePageProtocol) ˎ.ˊ();
        iUserHomePageProtocol.setUri("forum|user_adapt_zones");
        iUserHomePageProtocol.setType(1);
        fjm ˏ = fjm.ˏ(fiu.ˊ().ˋ(this, ˎ));
        FragmentTransaction ˊ = ˏॱ().ˊ();
        ˊ.ˏ(b.ˋʽ, ˏ.ˏ());
        ˊ.ˏ();
    }

    public void onClick(View view) {
        finish();
    }
}
